﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_Admin.aspx.cs" Inherits="V5_EShop.Admin.Admin_Admin" MasterPageFile="~/Admin/admin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    管理员
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Nav" runat="server">
    <a href="Admin_Admin.aspx">产品管理员</a> | <a href="Admin_Admin.aspx?Action=edit">添加管理员</a>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Content" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" OnRowCommand="gvList_RowCommand" AutoGenerateColumns="False"
                CssClass="tablelist tableheader overlist" GridLines="None">
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID" />
                    <asp:BoundField DataField="AdminName" HeaderText="用户名" />
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("ID")%>'
                                CommandName="go">修改</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Eval("ID")%>'
                                CommandName="del">删除</asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="150px" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table class="tablelist tableheader" cellpadding="5" cellspacing="1">
                <tr>
                    <td colspan="2">&nbsp;
                        <asp:Label ID="lblTitle" runat="server" Text="添加管理员"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">管理员名称
                    </td>
                    <td>
                        <asp:TextBox ID="txtAdminName" runat="server" Width="179px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>密码
                    </td>
                    <td>
                        <asp:TextBox ID="txtAdminPwd" runat="server" TextMode="Password" Width="177px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>确认密码
                    </td>
                    <td>
                        <asp:TextBox ID="txtAdminComPwd" runat="server" Width="174px" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:HiddenField ID="hfID" runat="server" Value="0" />
                        <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="添加保存" />
                    </td>
                </tr>
        </asp:View>
    </asp:MultiView>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Footer" runat="server">
</asp:Content>
